Optimal. Leaf size=19 \[ a x-\frac {i a \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3475} \[ a x-\frac {i a \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3475
Rubi steps
\begin {align*} \int (a+i a \tan (c+d x)) \, dx &=a x+(i a) \int \tan (c+d x) \, dx\\ &=a x-\frac {i a \log (\cos (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 19, normalized size = 1.00 \[ a x-\frac {i a \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 18, normalized size = 0.95 \[ -\frac {i \, a \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.35, size = 18, normalized size = 0.95 \[ a x - \frac {i \, a \log \left ({\left | \cos \left (d x + c\right ) \right |}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 23, normalized size = 1.21 \[ a x +\frac {i a \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.39, size = 17, normalized size = 0.89 \[ a x + \frac {i \, a \log \left (\sec \left (d x + c\right )\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.76, size = 17, normalized size = 0.89 \[ \frac {a\,\ln \left (\mathrm {tan}\left (c+d\,x\right )+1{}\mathrm {i}\right )\,1{}\mathrm {i}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 24, normalized size = 1.26 \[ - \frac {i a \log {\left (e^{2 i d x} + e^{- 2 i c} \right )}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________